/**
 * Model representing a Consolidation object
 */
Ext.define('Sisconsolid.model.Consolidation', {
      extend: 'Sisconsolid.model.HasPerson',    
      idProperty: 'idConsolidation',
      fields: [
            // id field
            {
                  name: 'idConsolidation',
                  type: 'int',
                  useNull : true
            },
            {
                  name: 'date',
                  type: 'date',
				  dateFormat :'Y-m-d'
            },
            {
                  name: 'attendedChurch',
                  type: 'boolean'
            },
            {
                  name: 'attendCell',
                  type: 'boolean'
            },
            {
                  name: 'whichChurch',
                  type: 'string'
            },
            {
                  name: 'visitingDay',
                  type: 'string'
            },
            {
                  name: 'contactTime',
                  type: 'string'
            },
            {
                  name: 'invitedBy',
                  type: 'string'
            },
            {
                  name: 'need',
                  type: 'string'
            },
            {
                  name: 'observation',
                  type: 'string'
            },
            {
                  name: 'occupation',
                  type: 'string'
            },
            {
                  name: 'idCell',
                  type: 'int'
            },
            {
                  name: 'cell',
                  type: 'string',
				  persist: false
            },
            {
                  name: 'idTookData',
                  type: 'int'
            },
            {
                  name: 'tookData',
                  type: 'string',
				  persist: false
            },
            {
                  name: 'idAssignedTo',
                  type: 'int'
            },
            {
                  name: 'assignedTo',
                  type: 'string',
				  persist: false
            },
            {	
                  name: 'idService',
                  type: 'int'
            },
            {
                  name: 'service',
                  type: 'string',
				  persist: false
            },
            {
                  name: 'idNet',
                  type: 'int'
            },
            {
                  name: 'net',
                  type: 'string',
				  persist: false
            }, // tracings
            {
                  name: 'phv1Id',
                  type: 'int',
				  useNull : true,
				  persist: false
            },
            {
                  name: 'phv1TracingType',
                  type: 'string',
				  useNull : true,
				  persist: false
            },
            {
                  name: 'phv1IdTracingType',
                  type: 'int',
				  persist: false
            },
            {
                  name: 'phv1Owed',
                  type: 'boolean',
				  persist: false
            },
			{
                  name: 'v1Id',
                  type: 'int',
				  useNull : true,
				  persist: false
            },
			{
                  name: 'v1TracingType',
                  type: 'string',
				  useNull : true,
				  persist: false
            },
			{
                  name: 'v1IdTracingType',
                  type: 'int',
				  persist: false
            },
            {
                  name: 'v1Owed',
                  type: 'boolean',
				  persist: false
            },
            {
                  name: 'phv2Id',
                  type: 'int',
				  useNull : true,
				  persist: false
            },
            {
                  name: 'phv2TracingType',
                  type: 'string',
				  useNull : true,
				  persist: false
            },
            {
                  name: 'phv2IdTracingType',
                  type: 'int',
				  persist: false
            },
            {
                  name: 'phv2Owed',
                  type: 'boolean',
				  persist: false
            },
			{
                  name: 'v2Id',
                  type: 'int',
				  useNull : true,
				  persist: false
            },
			{
                  name: 'v2TracingType',
                  type: 'string',
				  useNull : true,
				  persist: false
            },
			{
                  name: 'v2IdTracingType',
                  type: 'int',
				  persist: false
            },
            {
                  name: 'v2Owed',
                  type: 'boolean',
				  persist: false
            },
			{
                  name: 'v3Id',
                  type: 'int',
				  useNull : true,
				  persist: false
            },
			{
                  name: 'v3TracingType',
                  type: 'string',
				  useNull : true,
				  persist: false
            },
			{
                  name: 'v3IdTracingType',
                  type: 'int',
				  persist: false
            },
            {
                  name: 'v3Owed',
                  type: 'boolean',
				  persist: false
            },
			{
                  name: 'v4Id',
                  type: 'int',
				  useNull : true,
				  persist: false
            },
			{
                  name: 'v4TracingType',
                  type: 'string',
				  useNull : true,
				  persist: false
            },
			{
                  name: 'v4IdTracingType',
                  type: 'int',
				  persist: false
            },
            {
                  name: 'v4Owed',
                  type: 'boolean',
				  persist: false
            }			
      ] 
});